/**
 * @author wuhan
 * @date 2019/10/14 10:28
 */
public class FibonacciMatrix {
    public static void main(String[] args) {
        long[][] m1=new long[][]{{1,1,1,1},{1,1,1,1},{1,1,1,1},{1,1,1,1}};
        long[][] m2=new long[][]{{2,2,2,2},{2,2,2,2},{2,2,2,2},{2,2,2,2}};
        long[][] res = multiplication(m1, m2);
        for (long[] re : res) {
            for (long l : re) {
                System.out.println(l);
            }
        }


    }
    public static long[][] multiplication(long[][] m1 ,long[][] m2){
        long[][] res=new long[4][4];
        for (int i = 0; i < 4; i++) {
            for (int j = 0; j < 4; j++) {
                for (int k = 0; k < 4; k++) {
                    res[i][j]+=m1[i][k]*m2[k][j];
                }
            }
        }
        return res;
    }
}
